package org.example.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.example.ann.Schema;

import java.util.Date;
@Data
public class BaseDO {

    @Schema(description = "创建人ID")
    @TableField(value = "create_by", fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private Long createBy;

    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private Date createTime;

    @Schema(description = "更新人ID")
    @TableField(value = "update_by", fill = FieldFill.UPDATE)
    private Long updateBy;

    @Schema(description = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    @Schema(description = "是否删除 0-未删除 1-已删除")
    @TableField(value = "deleted", fill = FieldFill.UPDATE)
    private Integer deleted;
}
